﻿@model System.Collections.Generic.List<Project3.Models.Meeting>

@{
    ViewBag.Title = "Index";
}

<h2>Upcoming Meetings</h2>

<ul>
    @foreach (var meeting in Model)
    {
        <li>
        @Html.ActionLink(meeting.EventName, "Details", new { id = meeting.MeetingID })
        on
        @Html.DisplayFor(model => meeting.When)
        </li>
    }
</ul>
<p>
    @if (Request.IsAuthenticated)
    {
        @Html.ActionLink("Create New Meeting", "Create")
    }
</p>